{% extends 'common.html'%}
    {% block content %}

            <table class="layui-hide" id="table_data_detail" lay-filter="table_data_detail"></table>

            <script type="text/javascript" src="/static/lib/layui/layui.js" charset="utf-8"></script>
            <script type="text/javascript">
                layui.use('table', function(){
                        var table = layui.table;
                        //方法级渲染
                        table.render({
                            elem: '#table_data_detail'
                            ,url: '/tools/data_task/query'
                            ,method:'post'
                            ,where:{taskid:'{{taskid}}'}
                            ,cellMinWidth: 100
                            ,toolbar : true
                            ,cols: [[
                                {checkbox: true, fixed: true}
                                ,{field:'id', title: 'ID', sort: true, fixed: true,width:80}
                                ,{field:'name', title: '姓名'}
                                ,{field:'idno', title: '身份证',width:180}
                                ,{field:'phone', title: '手机号',width:120}
                                ,{field:'password', title: '密码',width:120}
                                ,{field:'bankname', title: '银行名称'}
                                ,{field:'crfuid', title: 'crfuid'}
                                ,{field:'kissoid', title: 'kissoid'}
                                ,{field:'bankname', title: '银行名称'}
                                ,{field:'bankno', title: '卡号',width:180}
                                ,{field:'is_whitelist', title: '白名单',width:80}
                                ,{field:'whitelist_system', title: '白名单类型'}
                                ,{field:'is_member', title: '会员',width:80}
                                ,{field:'member_type', title: '会员类型'}
                                ,{field:'member_system', title: '会员分类'}
                                ,{field:'is_register', title: '是否注册'}
                                ,{field:'is_bindcard', title: '是否绑卡'}
                                ,{field:'describe', title: '备注'}
                                ,{field:'create_time', title: '创建时间'}

                            ]]
                            ,id: 'table_data_detail'
                            ,page: true
                            ,height: 500
                        });


                        var $ = layui.$, active = {
                            reload: function(){
                                //执行重载
                                table.reload('table_data_detail', {
                                    page: {
                                        curr: 1 //重新从第 1 页开始
                                    }
                                    ,where: {
                                        openid:parent.window.openid,
                                        env:parent.window.env
                                    }
                                });
                            }
                        };

                        $('#flush_data').on('click', function(){
                            active['reload'] ? active['reload'].call(this) : '';
                        });

                    });
            </script>
    {% endblock %}